<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.common.enums.ChargeType"%>
<%@page import="com.blockchain.console.service.financial.entity.CzglRecord"%>
<%@page import="com.blockchain.console.servlets.user.ViewCzjl"%>
<%@page import="com.blockchain.common.enums.SbType"%>
<%@page import="com.blockchain.common.enums.ChargeStatus"%>
<%@page import="java.math.BigDecimal"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<body>
	<%
		CURRENT_CATEGORY="HHGL";
		CURRENT_SUB_CATEGORY="YHLB";
		PagingResult<CzglRecord> result=(PagingResult<CzglRecord>)request.getAttribute("result");
	%>
	<%@include file="/WEB-INF/include/header.jsp"%>
<div class="w_main">
<div class="main clearfix">
  
    <div class="wrap">
        <div class="r_main">
            <div class="home_main">
            	<div class="box box1 mb15">
			 			<div class="atil"><h3>用户详细情况</h3></div>
			     		<div class="con con1">
							<%@include file="/WEB-INF/include/user/yhxx_header.jsp"%>
			     		<div class="clear"></div>
			     	</div>
				</div>
                <div class="newsbox">
                  <div class="til clearfix">
                   <div class="Menubox">
                     <ul>
                     	<%String _yhxx_menu="充值记录"; %>
                     	<%@include file="/WEB-INF/include/user/yhxx_menu.jsp"%>                     </ul>
                    </div>     
                  </div>
                  <div class="border p15 Men_bt no_table" id="con_one_6">
                  	<form action="<%=controller.getURI(request, ViewCzjl.class)%>" method="post">
                    	<input type="hidden" name="userid" value="<%=userid%>">
                    	<div class="admin_input admin_pb">
                        		<p>
												<span>卡号：</span>
												<input type="text" name="kh" value="<%StringHelper.filterHTML(out, request.getParameter("kh")); %>" class="yhgl_input" />
											</p>
                        		<P>
												<span>充值时间：</span>
												<input type="text" name="startRechargeTime" id="datepicker1" readonly="readonly" class="yhgl_input date" />至
												<input type="text" name="endRechargeTime" id="datepicker2" readonly="readonly" class="yhgl_input date" />
											</P>
											<p>
												<span>充值方式：</span>
												<select name="payType" class="yhgl_sel" >
														<option>请选择</option>
														<%
															for (ChargeType payType : ChargeType.values()) {
														%>
														<option value="<%=payType.name()%>" <%if (payType.name().equals(request.getParameter("payType"))){%> selected="selected" <%} %>><%=payType.getName()%></option>
														<%
															}
														%>
												</select>
											</p>
											<P>
												<span>充值状态：</span>
												<select name="status" class="yhgl_sel" >
														<option>请选择</option>
														<%
															for (ChargeStatus status : ChargeStatus.values()) {
														%>
														<option value="<%=status.name()%>" <%if (status.name().equals(request.getParameter("status"))){%> selected="selected" <%} %>><%=status.getName()%></option>
														<%
															}
														%>
												</select>
											</P>
											<P>
												<span>是否自动到账：</span>
												<select name="is" class="yhgl_sel" >
														<option>请选择</option>
														<%
															for (IsPass is : IsPass.values()) {
														%>
														<option value="<%=is.name()%>" <%if (is.name().equals(request.getParameter("is"))){%> selected="selected" <%} %>><%=is.getName()%></option>
														<%
															}
														%>
												</select>
											</P>
                              <p><input name="" type="submit" class="btn2" value="搜索" /></p>
                    	</div>
                    	<div class="clear"></div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="3" class="yhgl_table tc">
								<tr class="hsbg">
									<td>银行卡号</td>
									<td>充值金额</td>
									<td>实际到账金额</td>
									<td>充值方式</td>
									<td>充值状态</td>
									<td>是否自动到账</td>
									<td>充值时间</td>
									
								</tr>
								<%
									CzglRecord[] items = result.getItems();
										if (items != null) {
											int i=1;
											for (CzglRecord rechargeItem : items) {
												if (rechargeItem == null) {
													continue;
												}
								%>
								<tr class="dhsbg">
									<td><%StringHelper.filterHTML(out, rechargeItem.czkh);%></td>
									<td><%=Formater.formatAmount(rechargeItem.tjjeAmount)%></td>
									<td><%=Formater.formatAmount(rechargeItem.userAmount)%></td>
									<td><%if(rechargeItem.chargeType!=null){%><%=rechargeItem.chargeType.getName()%><%}%></td>
									<td><%if(rechargeItem.rechargeStatus!=null){%><%StringHelper.filterHTML(out,rechargeItem.rechargeStatus.getName());%><%}%></td>
									<td><%=rechargeItem.is.getName()%></td>
									<td><%=DateTimeParser.format(rechargeItem.chargeDateTime,"yyyy-MM-dd HH:mm")%></td>
								</tr>
								<%}}%>
							</table>
                    <%
						 AbstractConsoleServlet.rendPagingResult(out, result); 
					%>
					</form>
              	  <div class="clear"></div>
                  </div>
                </div> 
                <div class="box2 clearfix"></div>
            </div>
        </div>   
    </div>
        
	<%@include file="/WEB-INF/include/left.jsp"%>
</div>
</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%>
	<%@include file="/WEB-INF/include/datepicker.jsp"%>
	<script type="text/javascript">
		$(function() {
			$("#datepicker1").datepicker({inline: true});
		    $('#datepicker1').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker2").datepicker({inline: true});
		    $('#datepicker2').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker1").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("createTimeStart"));%>");
		    $("#datepicker2").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("createTimeEnd"));%>");
		});
	</script>
</body>
</html>